import { useUserStore } from '@/store/auth';
import { storeToRefs } from 'pinia';
export default {
  beforeMount(el: any, binding: any) {
    const userStore = useUserStore();
    const { roles } = storeToRefs(userStore);
    const requiredRoles = binding.value;
    if (!roles.value.includes(requiredRoles)) {
       el.style.display = 'none';
     // el.parentNode.removeChild(el);

    }
  },
};
